import request from '@/utils/request.js'

export function getAllDish(campusId) {
	return request({
		url: '/goods/getAllGoods',  // 只需要填相对路径
		method: 'GET',
		data: { campusId },
	})
}
export function getGoodByGoodId(id) {
	return request({
		url: '/goods/getGoodByGoodId',  // 只需要填相对路径
		method: 'GET',
		data: { id },
	})
}


export function submitOrders(orderData) {
	return request({
		url: '/order/submitOrders',  // 只需要填相对路径
		method: 'POST',
		data: orderData,
	})
}


export function payOrder(orderNo) {
	return request({
		url: '/dish-order-service/pay/payOrder',  // 只需要填相对路径
		method: 'GET',
		data: { orderNo },
	})
}
